<html><head>
<meta http-equiv="content-type" content="text/html; charset=utf-8">
<meta content="text/javascript" http-equiv="content-script-type">
<title>tango.core.Traits</title>

<link rel="stylesheet" type="text/css" href="css/style.css">
<!--[if lt IE 7]><link rel="stylesheet" type="text/css" href="css/ie56hack.css"><![endif]-->
<script language="JavaScript" src="js/util.js" type="text/javascript"></script>
<script language="JavaScript" src="js/tree.js" type="text/javascript"></script>
<script language="JavaScript" src="js/explorer.js" type="text/javascript"></script>
<script>
function anchorFromTitle(title, path, ext) {
  var url = path + title + "." + ext;
  document.write("<a href='" + url + "'>" + title + "</a>");
  }
</script>
</head><body>
<div id="tabarea"></div><div id="explorerclient"></div>
<div id="content"><script>explorer.initialize("tango.core.Traits");</script>
        <table class="content">
                <tr><td id="docbody"><h1><a href="http://www.dsource.org/projects/tango/browser/trunk/tango/core/Traits.d?rev=3791">tango.core.Traits</a></h1>
                
<font color="black">The traits module defines tools useful for obtaining detailed compile-time
 information about a type.  Please note that the mixed naming scheme used in
 this module is intentional.  Templates which evaluate to a type follow the
 naming convention used for types, and templates which evaluate to a value
 follow the naming convention used for functions.</font><br><br>
<b>License:</b><br>
BSD style: see <a href="http://www.dsource.org/projects/tango/wiki/LibraryLicense">license.txt</a><br><br>
<b>Authors:</b><br>
Sean Kelly<br><br>
<dl>
<script>explorer.outline.writeEnabled = true;</script>
<dt><span class="decl"><li>template <span class="currsymbol"><a href="http://www.dsource.org/projects/tango/browser/trunk/tango/core/Traits.d?rev=3791#L18">isCharType</a></span>
<script>explorer.outline.addDecl('isCharType');</script>( T );</li></span></dt>
<script>explorer.outline.writeEnabled = false;</script>
<dd>
<font color="black">Evaluates to true if T is char, wchar, or dchar.
 </font><br><br>
</dd>
<script>explorer.outline.writeEnabled = true;</script>
<dt><span class="decl"><li>template <span class="currsymbol"><a href="http://www.dsource.org/projects/tango/browser/trunk/tango/core/Traits.d?rev=3791#L29">isSignedIntegerType</a></span>
<script>explorer.outline.addDecl('isSignedIntegerType');</script>( T );</li></span></dt>
<script>explorer.outline.writeEnabled = false;</script>
<dd>
<font color="black">Evaluates to true if T is a signed integer type.
 </font><br><br>
</dd>
<script>explorer.outline.writeEnabled = true;</script>
<dt><span class="decl"><li>template <span class="currsymbol"><a href="http://www.dsource.org/projects/tango/browser/trunk/tango/core/Traits.d?rev=3791#L42">isUnsignedIntegerType</a></span>
<script>explorer.outline.addDecl('isUnsignedIntegerType');</script>( T );</li></span></dt>
<script>explorer.outline.writeEnabled = false;</script>
<dd>
<font color="black">Evaluates to true if T is an unsigned integer type.
 </font><br><br>
</dd>
<script>explorer.outline.writeEnabled = true;</script>
<dt><span class="decl"><li>template <span class="currsymbol"><a href="http://www.dsource.org/projects/tango/browser/trunk/tango/core/Traits.d?rev=3791#L55">isIntegerType</a></span>
<script>explorer.outline.addDecl('isIntegerType');</script>( T );</li></span></dt>
<script>explorer.outline.writeEnabled = false;</script>
<dd>
<font color="black">Evaluates to true if T is a signed or unsigned integer type.
 </font><br><br>
</dd>
<script>explorer.outline.writeEnabled = true;</script>
<dt><span class="decl"><li>template <span class="currsymbol"><a href="http://www.dsource.org/projects/tango/browser/trunk/tango/core/Traits.d?rev=3791#L65">isRealType</a></span>
<script>explorer.outline.addDecl('isRealType');</script>( T );</li></span></dt>
<script>explorer.outline.writeEnabled = false;</script>
<dd>
<font color="black">Evaluates to true if T is a real floating-point type.
 </font><br><br>
</dd>
<script>explorer.outline.writeEnabled = true;</script>
<dt><span class="decl"><li>template <span class="currsymbol"><a href="http://www.dsource.org/projects/tango/browser/trunk/tango/core/Traits.d?rev=3791#L76">isComplexType</a></span>
<script>explorer.outline.addDecl('isComplexType');</script>( T );</li></span></dt>
<script>explorer.outline.writeEnabled = false;</script>
<dd>
<font color="black">Evaluates to true if T is a complex floating-point type.
 </font><br><br>
</dd>
<script>explorer.outline.writeEnabled = true;</script>
<dt><span class="decl"><li>template <span class="currsymbol"><a href="http://www.dsource.org/projects/tango/browser/trunk/tango/core/Traits.d?rev=3791#L87">isImaginaryType</a></span>
<script>explorer.outline.addDecl('isImaginaryType');</script>( T );</li></span></dt>
<script>explorer.outline.writeEnabled = false;</script>
<dd>
<font color="black">Evaluates to true if T is an imaginary floating-point type.
 </font><br><br>
</dd>
<script>explorer.outline.writeEnabled = true;</script>
<dt><span class="decl"><li>template <span class="currsymbol"><a href="http://www.dsource.org/projects/tango/browser/trunk/tango/core/Traits.d?rev=3791#L99">isFloatingPointType</a></span>
<script>explorer.outline.addDecl('isFloatingPointType');</script>( T );</li></span></dt>
<script>explorer.outline.writeEnabled = false;</script>
<dd>
<font color="black">Evaluates to true if T is any floating-point type: real, complex, or
 imaginary.
 </font><br><br>
</dd>
<script>explorer.outline.writeEnabled = true;</script>
<dt><span class="decl"><li>template <span class="currsymbol"><a href="http://www.dsource.org/projects/tango/browser/trunk/tango/core/Traits.d?rev=3791#L110">isPointerType</a></span>
<script>explorer.outline.addDecl('isPointerType');</script>(T);</li></span></dt>
<script>explorer.outline.writeEnabled = false;</script>
<dd>
<font color="black">Evaluates to true if T is a pointer type.
 </font><br><br>
</dd>
<script>explorer.outline.writeEnabled = true;</script>
<dt><span class="decl"><li>template <span class="currsymbol"><a href="http://www.dsource.org/projects/tango/browser/trunk/tango/core/Traits.d?rev=3791#L157">isReferenceType</a></span>
<script>explorer.outline.addDecl('isReferenceType');</script>( T );</li></span></dt>
<script>explorer.outline.writeEnabled = false;</script>
<dd>
<font color="black">Evaluates to true if T is a a pointer, class, interface, or delegate.
 </font><br><br>
</dd>
<script>explorer.outline.writeEnabled = true;</script>
<dt><span class="decl"><li>template <span class="currsymbol"><a href="http://www.dsource.org/projects/tango/browser/trunk/tango/core/Traits.d?rev=3791#L170">isDynamicArrayType</a></span>
<script>explorer.outline.addDecl('isDynamicArrayType');</script>( T );</li></span></dt>
<script>explorer.outline.writeEnabled = false;</script>
<dd>
<font color="black">Evaulates to true if T is a dynamic array type.
 </font><br><br>
</dd>
<script>explorer.outline.writeEnabled = true;</script>
<dt><span class="decl"><li>template <span class="currsymbol"><a href="http://www.dsource.org/projects/tango/browser/trunk/tango/core/Traits.d?rev=3791#L231">isAssocArrayType</a></span>
<script>explorer.outline.addDecl('isAssocArrayType');</script>( T ); [private]</li></span></dt>
<script>explorer.outline.writeEnabled = false;</script>
<dd>
<font color="black">Evaluates to true if T is an associative array type.
 </font><br><br>
</dd>
<script>explorer.outline.writeEnabled = true;</script>
<dt><span class="decl"><li>template <span class="currsymbol"><a href="http://www.dsource.org/projects/tango/browser/trunk/tango/core/Traits.d?rev=3791#L241">isCallableType</a></span>
<script>explorer.outline.addDecl('isCallableType');</script>( T );</li></span></dt>
<script>explorer.outline.writeEnabled = false;</script>
<dd>
<font color="black">Evaluates to true if T is a function, function pointer, delegate, or
 callable object.
 </font><br><br>
</dd>
<script>explorer.outline.writeEnabled = true;</script>
<dt><span class="decl"><li>template <span class="currsymbol"><a href="http://www.dsource.org/projects/tango/browser/trunk/tango/core/Traits.d?rev=3791#L253">ReturnTypeOf</a></span>
<script>explorer.outline.addDecl('ReturnTypeOf');</script>( Fn );</li></span></dt>
<script>explorer.outline.writeEnabled = false;</script>
<dd>
<font color="black">Evaluates to the return type of Fn.  Fn is required to be a callable type.
 </font><br><br>
</dd>
<script>explorer.outline.writeEnabled = true;</script>
<dt><span class="decl"><li>template <span class="currsymbol"><a href="http://www.dsource.org/projects/tango/browser/trunk/tango/core/Traits.d?rev=3791#L265">ReturnTypeOf</a></span>
<script>explorer.outline.addDecl('ReturnTypeOf');</script>( alias fn );</li></span></dt>
<script>explorer.outline.writeEnabled = false;</script>
<dd>
<font color="black">Evaluates to the return type of fn.  fn is required to be callable.
 </font><br><br>
</dd>
<script>explorer.outline.writeEnabled = true;</script>
<dt><span class="decl"><li>template <span class="currsymbol"><a href="http://www.dsource.org/projects/tango/browser/trunk/tango/core/Traits.d?rev=3791#L278">ParameterTupleOf</a></span>
<script>explorer.outline.addDecl('ParameterTupleOf');</script>( Fn );</li></span></dt>
<script>explorer.outline.writeEnabled = false;</script>
<dd>
<font color="black">Evaluates to a tuple representing the parameters of Fn.  Fn is required to
 be a callable type.
 </font><br><br>
</dd>
<script>explorer.outline.writeEnabled = true;</script>
<dt><span class="decl"><li>template <span class="currsymbol"><a href="http://www.dsource.org/projects/tango/browser/trunk/tango/core/Traits.d?rev=3791#L295">ParameterTupleOf</a></span>
<script>explorer.outline.addDecl('ParameterTupleOf');</script>( alias fn );</li></span></dt>
<script>explorer.outline.writeEnabled = false;</script>
<dd>
<font color="black">Evaluates to a tuple representing the parameters of fn.  n is required to
 be callable.
 </font><br><br>
</dd>
<script>explorer.outline.writeEnabled = true;</script>
<dt><span class="decl"><li>template <span class="currsymbol"><a href="http://www.dsource.org/projects/tango/browser/trunk/tango/core/Traits.d?rev=3791#L308">BaseTypeTupleOf</a></span>
<script>explorer.outline.addDecl('BaseTypeTupleOf');</script>( T );</li></span></dt>
<script>explorer.outline.writeEnabled = false;</script>
<dd>
<font color="black">Evaluates to a tuple representing the ancestors of T.  T is required to be
 a class or interface type.
 </font><br><br>
</dd></dl></td></tr>
                <tr><td id="docfooter">
                        Copyright (C) 2005-2006 Sean Kelly.  All rights reserved. :: page rendered by CandyDoc. Generated by <a href="http://code.google.com/p/dil">dil</a> on Sat Aug  2 16:08:32 2008.
                </td></tr>
        </table>
</div>
<script></script>
</body></html>